﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TvGuide.UI.Models.SearchData>" %>


<div class="Category_Widget_Main">
<span class="catWidgetTitle">Ընտրել՝</span>
<div id="catGroup">  


<% for (int ind = 0; ind < Model.Catlist.Count; ind++)
   {  %>

   <div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m => m.testcat[ind])%>
  <span  style="background-color: <%: Model.Catlist[ind].color  %>; padding: 2px 3px;"> <%: Model.Catlist[ind].CatDispName %> </span> 
  </div>

  <% } %>
      
 <%--<div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m=>m.NewsCat) %>
  <span  style="background-color: <%: Model.Catlist[0].color  %>; padding: 2px 3px;"> <%: Model.Catlist[0].CatDispName %> </span> 
  </div>

  <div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m=>m.FilmsCat) %>
  <span  style="background-color: <%: Model.Catlist[1].color  %>; padding: 2px 3px;"> <%: Model.Catlist[1].CatDispName %> </span> 
  </div>

  <div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m=>m.MusicCat) %>
  <span  style="background-color: <%: Model.Catlist[2].color  %>; padding: 2px 3px;"> <%: Model.Catlist[2].CatDispName %> </span> 
  </div>

  <div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m=>m.HumorCat) %>
  <span  style="background-color: <%: Model.Catlist[3].color  %>; padding: 2px 3px;"> <%: Model.Catlist[3].CatDispName %> </span> 
  </div>

  <div  class="Category_Widget_CatContainer" >
 <%: Html.CheckBoxFor(m=>m.ChildrenCat) %>
  <span  style="background-color: <%: Model.Catlist[4].color  %>; padding: 2px 3px;"> <%: Model.Catlist[4].CatDispName %> </span> 
  </div>--%>

</div>
</div>

<script type="text/javascript">

  //////////////////////


    $(function () {
        $(":input").css('-webkit-appearance', '');
    });

    </script>